dynamic class classes.ww_interface.Waiter extends MovieClip
{
    var countdown: Number = 2;
    var cdw: Number = 0;
    var _visible;
    var onEnterFrame;
    var status;

    function Waiter()
    {
        super();
        this._visible = false;
        this.status = "ready_off";
    }

    function show()
    {
        this.status = "progress";
        this._visible = true;
        this.cdw = 0;
        this.onEnterFrame = mx.utils.Delegate.create(this, this.makeBig);
    }

    function hide()
    {
        this._visible = false;
        this.status = "ready_off";
    }

    function makeBig()
    {
        ++this.cdw;
        if (this.cdw > this.countdown) 
        {
            this.status = "ready_on";
            delete this.onEnterFrame;
        }
    }

}
